package View;
import java.util.Scanner;
import model.Game;
import model.RandomSeed;
import model.Seed;

public class Main {

	public static void main(String[] args) {
		Seed seed = new RandomSeed(20,60);
		Game game = new Game(seed);
		GameView view = new GameView(game);
		
		boolean finished = false;

		while(!finished ){
			view.show();
			finished = midGameMenu();
			game.tick();
		}
		System.out.println("Enough of that for today then... Have a nice day.");
	}

	private static boolean midGameMenu() {
		boolean finish = false;
		Scanner in = new Scanner(System.in);
		System.out.println("Type 0 to end the game or something else for another tick");
		String input = in.next();
		if (input.compareToIgnoreCase("0") == 0){
			finish = true;
		}
		return finish;
	}

}
